<?php
//header ('Content-type: text/html; charset=ISO-8859-1');
//include 'Conexao.php';
include '../dao/ItemDAO.php';

$itemdao = new ItemDAO();
if (isset($_POST["iditem"])) {
	$result = $itemdao->getProdutosByItem($_POST["iditem"]);
}else{
	echo "Erro no iditem";
}

echo json_encode($result);
?>